using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace BoOnce.GameLogic.Entities
{
    abstract class NPC : Somebody
    {
        private BoOnce.AI.AI _AI;

        #region Constructor
        /// <summary>
        /// NPC constructor
        /// </summary>
        /// <param name="ai">Artifial Intelligence, if null: No AI</param>
        /// <param name="pos">Position</param>
        /// <param name="name">Name of the enemy</param>
        /// <param name="height">Height for the physical engine</param>
        /// <param name="width">Width for the physical engine</param>
        /// <param name="mass">Mass for the physical engine</param>
        public NPC(BoOnce.AI.AI ai, Vector2 pos, String name, float height, float width, float mass)
            : base(pos, name,height, width, mass)
        {
            _AI = ai;
        }
        #endregion

        public override void Update(GameTime gameTime)
        {
            if (_AI != null)
            {
                _AI.Update(gameTime);
            }
            base.Update(gameTime);
        }
    }
}
